const ctx = require.context('../views/', true, /\.vue$/)

let components = []

ctx.keys.forEach(key => {
  let component = ctx(key).default
  if (component.name !== 'main') {
    components.push({
      path: component.name,
      component: component
    })
  }
})

export default components